<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <div>网关正常通讯情况下，请在设备上长按按钮离网。</div>
   <div>若网关异常，仍要删除zigbee设备。可<a onclick="deleteDevice()" style="cursor: pointer;color:#007DDB;">强制删除</a>。</div>
   <script type="text/javascript" src="js/jquery.min.js"></script>
   <script type="text/javascript" src="js/jquery.cookie.js"></script>
   <script type="text/javascript" src="js/sha.js"></script>
   <script type="text/javascript" src="js/app.js"></script>
   <script>
       function deleteDevice(){
          httpPost('iot/zigbee/device/del',{mac:location.search.split("=")[1]},function(){
              parent.reloadTable();
              var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
              parent.layer.close(index); //再执行关闭
          })
       }
   </script>
</body>
</html>